<?php

class Image_Field_Core extends Field
{
	public function put_in_cell($item)
	{
		$property = $this->name;
		if ($item->$property == '')
			return html::image(array('src' => 'media/images/nopicture.jpg', 'alt' => 'no image'));
		else
			return html::image(array('src' => $item->$property, 'alt' => 'image'));
			
	}
}
